<?php
namespace app\admin\validate;
use think\Validate;

/**
 * 角色权限验证器
 * Created by PhpStorm.
 * User: tyll
 * Date: 2020/04/08
 * Time: 17:25
 */
class Role extends Validate{

    protected $rule = [
        'mini_ws_detail'   => 'require'
    ];

    protected $message = [
        'mini_ws_detail.require'   => '小程序工位详情必须填写'
    ];

    protected $scene = [
        'add'  => ['mini_ws_detail'],
        'edit' => ['mini_ws_detail']
    ];
}